<template>
    <div class="error-page">
        <img class="unauthorized" src="@/assets/img/unauthorized.png" />
        <span class="text">很抱歉! 您暂无访问该页面权限</span>
        <el-button type="primary" @click="logout">切换账号</el-button>
    </div>
</template>

<script lang="ts" setup>
import {useUserStore} from '@/store/modules/user';
const userStore = useUserStore();
// 退出账号, 切换到uuap登录页面
const logout = () => {
    userStore.userLogout();
};
</script>

<style lang="less" scoped>
.error-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    .unauthorized {
        width: 700px;
    }
    .text {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 20px;
    }
}
</style>
